If you tell about something that was supposed to be a secret, we say you let the cat out of the bag.
VOA: special.2009.09.27
Although the identity of the winner is meant to be a closely guarded secret, the Cameroon striker let the cat out of the bag following their midweek friendly win over Senegal in France.